package io.itit.ecp.admin.common.enums;


import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;

@Getter
@RequiredArgsConstructor
public enum IPhysicalModelModelFutureEnums {

    REALTIME_MONITOR("1", "实时监测"),

    READONLY_DATA("2", "只读数据"),

    HISTORY_STORAGE("3", "历史存储"),

    MEASUREMENT_PARAMETERS("4", "计量参数");

    private final String value;

    private final String label;

    public static IPhysicalModelModelFutureEnums getByValue(String value) {
        for (IPhysicalModelModelFutureEnums item : IPhysicalModelModelFutureEnums.values()) {
            if (StringUtils.equals(item.getValue(), value)) {
                return item;
            }
        }
        throw new IllegalArgumentException("no such value");
    }
}
